|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.subscribers.ComparisonCriteria
A ComparisonCriteria used by a TeamSubscriber
to calculate the sync
state of the workspace resources. Subscribers are free to use the criteria
best suited for their environment. For example, an FTP subscriber could choose to use file
size or file timestamps as compasison criterias.
Aggregate criterias can be created for cases where a criteria is based on the result of another criteria.
SyncInfo
,
TeamSubscriber
Constructor Summary | |
ComparisonCriteria()
Default no-args contructor to be called if the comparison criteria does not depend on other criterias. |
|
ComparisonCriteria(ComparisonCriteria[] preConditions)
Constructor used to create a criteria whose comparison is based on the compare result of other criterias. |
Method Summary | |
protected boolean |
checkPreConditions(Object e1,
Object e2,
IProgressMonitor monitor)
|
abstract boolean |
compare(Object e1,
Object e2,
IProgressMonitor monitor)
Returns true if e1 and e2 are equal based on this criteria and false
otherwise. |
abstract String |
getId()
Return the unique id that identified this comparison criteria. |
abstract String |
getName()
Return the comparison criteria, in a format that is suitable for display to an end user. |
protected ComparisonCriteria[] |
getPreConditions()
|
boolean |
usesFileContents()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComparisonCriteria()
public ComparisonCriteria(ComparisonCriteria[] preConditions)
preConditions
- array of preconditionsMethod Detail |
public abstract String getName()
public abstract String getId()
public abstract boolean compare(Object e1, Object e2, IProgressMonitor monitor) throws TeamException
true
if e1 and e2 are equal based on this criteria and false
otherwise. Since comparison could be long running the caller should provide a progress monitor.
e1
- object to be comparede2
- object to be comparedmonitor
-
TeamException
protected ComparisonCriteria[] getPreConditions()
protected boolean checkPreConditions(Object e1, Object e2, IProgressMonitor monitor) throws TeamException
TeamException
public boolean usesFileContents()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |